package com.shxy.response

/**
 * 返回数据
 */
data class ResponseData(val status: Boolean, val code: Int, val message: String?, val data: Any?){
    /**
     * 构造函数
     */
    constructor(status: Boolean): this(status, 200, null, null)
    constructor(code: Int, message: String?): this(false, code, message, null)
    constructor(message: String?, data: Any?): this(true, 200, message, data)
    constructor(message: String?): this(true, 200, message, null)
    constructor(data: Any?): this(true, 200, null, data)
}